﻿@model VisaApp.Models.TopicModel
@{
    ViewBag.Title = Model.MetaTitle;
    ViewBag.Description = Model.metaDescription;
    ViewBag.Keywords = Model.Keywork;
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<script type="text/javascript">
    function onSelectlistCategoryPageTTHI() {
        show_Loading();
        var ids = $("#selectKhuVucPageTTHI").val();
        $.getJSON("/Visa/AllQuocGiaByCateid/" + ids,
            function (carData) {
                var select = $("#selectProductPageTTHI");
                select.empty();
                $.each(carData, function (index, itemData) {
                    select.append($('<option/>', {
                        value: itemData.Value,
                        text: itemData.Text
                    }));
                });
            });


        $('#box-busy').fadeOut('medium', function () {
            $('.black_overlay').css('display', 'none');
        });
    }

    function OnSelectProductPageTTHI() {
        show_Loading();
        var txtID = $("#selectProductPageTTHI option:selected").val()
        $.get("/News/GetCauHoiOncate?id=" + txtID + "&page=" + 1, function (data) {
            $(".FromListThongtinCanbietTTHI").html("");
            $(".FromListThongtinCanbietTTHI").html(data);
            $('#box-busy').fadeOut('medium', function () {
                $('.black_overlay').css('display', 'none');
            });

        });

    }

</script>

<div class="ct-dt-nav">
    <a href="">
        <img alt="" src="/Content/images/souc.png"></a> 
        <a href="/">Trang chủ</a>
    <span>&gt;</span> <a href="/cau-hoi-thuong-gap"><b>Câu hỏi thường gặp</b></a>
</div>
<div class="ContentHome">
    <div class="mapsHomeKhuVuc">
        <div class="ct-dt">
            @Html.ActionLink("Gởi câu hỏi", "EmailGoiCauHoi", "News", null, new { @class = "btnsubmit2 buttontop addPopup", data_dialog_id = "EmailGoiCauHoi", data_dialog_title = "Gởi câu hỏi" })
            <div style="height:20px"></div>
            <div class="searchTthuich">
                Tìm câu hỏi theo :
                
                 <select id="selectKhuVucPageTTHI" onchange = "onSelectlistCategoryPageTTHI()">
                            <option value="-1">-- Chọn khu vực --</option>
                            <option value="142">Châu Á</option>
                            <option value="150">Châu Âu</option>
                            <option value="009">Châu Đại Dương</option>
                            <option value="002">Châu Phi</option>
                            <option value="019">Bắc Mỹ</option>
                            <option value="300">Nam Mỹ</option>
                  </select>

                   <select id="selectProductPageTTHI" class="selectProduct" onchange="OnSelectProductPageTTHI()">
                        <option value="-1">-- Chọn quốc gia --</option>
                    </select>

            </div>
            <div style="height:10px"></div>
            <div class="ContenInfoThongtin FromListThongtinCanbietTTHI">
                @Html.Action("GetCauHoiOncate", "News", new {id = -1, page = 1 })
            </div>
        </div>
    </div>
    <div class="listResgeditVisa">
        <div class="folderLeftMaps">
            @Html.Action("FromVisa", "Visa", new { codechau = string.Empty, idQuocgia = 0 })
        </div>
        <div style="height:7px"></div>
         @Html.Action("TuvantrucTuyen", "News", null)
        <div class="rightBoxPage" style="margin:10px">
            @Html.Action("_finduS", "Home", null)
        </div>
    </div>
    <div class="clear">
    </div>
</div>
